fixing example to work with select script