performance enhancements to y_from_x and new CRITICAL warning which needs to be addressed