working return statement