implements simple renderer