preliminary code-1