testing compile function