remove exception for incorrect shape, instead return nil