working on 3 long values