solving compilation problem