renamed the subroutine to match conventions