added last word detector