added lastIndexOf