take out confusing function no longer used