generic select procedure added