minor warnings fixed