tested passing null pointer to control functions