added more rendering functionality