Fix for issue #139

add "tail" function