adding alerts methods where it's necessary