fixed all severe performance issue; code could still be x10 faster though