make it working in all 6 configurations