added common functions