getting rid of warnings before branch