refactored dog availability