change depth method