debug and only once