performing multiple functions