added simple render function