this is the code base for anotonio's android version