removed warning from mainactivity