making the app run on java 8