Wrong order of variables i def main fixed.