removed redundant variable that was causing an error