added render function, that doesn't work yet