beginning of custom flow layout that will work