select is partially written here