corrected some strict php warninings