changing up the kript to work better