functions to manager