refactoring vitals