modified the java-homeless-code post