debug and it works