fixed errors and stared minimizing task