correct trap input data prototype