minor correction after move of function