debug and fix bugs