updates to common functions