integ [modified main activity to remove for null pointer]