moved logic, added renderText