following some code conventions on compiler.js