doesn't reverse dependencies list twice