added doClass variable