function updates - debugging