1.1: increase scope of function and check for empty data