refactor alert spec
refactor polygon spec