modified runtime functions