more adjusing to php