updated gravity to the new layout