added magnitude equations