removed unnecessary call to function