implemented a simple rendering procedure