fixed some strict errors