fixed maximum stack problem