removed unwanted code segment