fix strict standards warnings