create render method out of init. Change in todo not done.