fixing whit msg typsen of functions