added addip method