rewriting satteltite code , using "normal" math