can now pass in conditions