trying fix problem with select