added warning in case of invalid point data