removed unnecessary comments, var declarations and redundancy
update