added magnitude to orientation finder