add first try to write render function