making render function
resolved conflict