testing some functions