making some functions
create utils functions