basic add code working