hopefully proper fix for aliasing issue