debug works
works ok