removed unnecessary return and variable