changed krl script