functions for finding cell ranges