small changes in compile function