modify to compile from eclipse