removed loop and added subroutine call