some top coder stuff