fixed complier warnings