trying to add conditions