do i have to write each layer its own code