Changed error to error!= nil
removed space
Adding filters