following joan steps to compile