fixed loop, changed default userdata