modified fillText method.