added checks for functions with lvalue not used