Coded all surface algorithms