copy of original code

original code