more code
render function done