added multi word functionality