version 1.1, add the subroutine findef