check lenght of stack still not 100% :(