added a compile function