changed main funtions name such that it can properly be referenced