modified snapshopt version