minor fix
improved tail