trying to fix strange em behaviour