mutli definging two functions