removed space
added custom errors