removed unnecessary boolean value