updated

bandwidth efficient code