implemented basic rendering