add function select_limit