update functions -> add useful method