fix StyleCope warnings