thx DBAtrix and chrislong - i was approaching the problem from the wrong angle