deleted unused common functions