changed some errors to warnings
changed some errors to warnings