working on script solution