adjusted check 5 for pass by reference check