changed norm function to L1