remove alert and shrink code