working on debugging