add assign tasks method