updated version
changed version
catch error and return nil if error occurs