gravity added to xml input