fixed some unchecked warnings