wondering what the best way of adding a function without breaking the code