fixed dynamic stack I think, removed prints