stupid byte exchange implemented