commented error checks and drawText for speed