working on 2D model