working on 2,3 and 7