trying to fix strange compiler bug