got string issue figured out thanks to dondi, working on properly implementing gravity function