started implementing own rendering functions