fixed the magnitude of lengths