item action code improved a bit