fixing some warnings