working on displaying logic