fixed for only 4 tasks