working on 18, working for small triangle