fixing an error I made with deep