fixed warning about batterPos being a factor