source code for java SCS