made sure  the depth for symbols didnt hit -1