removed obsolete vector calculations