changed new name to newJ to avoid usage confusing with the php new