resolved some notes
fix compiler warnings