stack spec improvement