master adding function to some functions that were missing function