change php constructor