adding earth gravity computation