helper for compiler