making the final sub-task