introducing fatalerror() fucntion with warning