commented strange logic