update by LJW fro correct margin value