extracted change gravity method
added tests for record_modification