missing arg bug fixed for demote and promote functions.