added code to remove url