fixing contains bug