updated api with penalties