rewrote first part.
added minkovsky