removing copy statement
refactoring task class. partially done