solved compiler warnings