working code with just l2 error
;