removed many PHP notices