removed additonal print statemetns
removed blank line
modified test
modified to rectify error