removed 2 functions from common.js