adding code recommended online