debug and test