solution to http collect problem in learnyounode