added method to get conditions
added getConditions
added getConditions