trying to fix strange syntax problems