a couple of warnings fixed