add return null when there is a warning