select code written; might try to test this out later