new method for storing code