Deleted the non necessary code