methods that use @ip now reference it directly instead of being passed in as paramaters