removed conole logging code