added some rendering stuff