added onCreate and added "singles" var