added trap for int