script working with old format (no variance); removed 5000 curve