turned to .java because shifting to android