working advanced compilation version!