implementing Lo-Dash functionality