refactored functions, www() added