improve reward and violation function