alert working with buy