ruby update on subroutine