place when all possibilities removed
refactoring a bit
formatting