working on flow problems