remove unnecessary “stack” class