messing around with the freeze function