have trivial case in same format as other solutions
making things a bit more concise...
made itdeep_helper look like a private function