added lines and ports for magnitude map!