fixed some warnigns