full v1 Code