making some functions