trying to align code with reality