added subroutine by trunk

Yep my mistake.