fixing script return type