working on 3 layers