fixing gross bug