fixing php strict errors