for the selection part