fix unchecked warnings during compile