very odd that this code worked