corrected all compilation bugs working project