compiles safely