began some rendering functions