simplifying compile (how I don't know. it was only three lines...)