implemented second taks