used last_of to reduce sequence length and compile time