removing warning in helper function