removed duplicate function

looks like this function accidentally got pasted in twice