size check for get_frontier