added ktrue function