removed unused duplicated code (oops... copy pasta)