solution 1 for every but uminus
removed test printfs