new script for relative nonlin