changed the drawLabel function