had dep definition completely wrong, fixed