changed call to .find which doesn't exist for tuples to .index