removing unneccessary work paths