code works but term shouldnt be there