just modifications related to getting data and applying functions