implemented alerts