remove unused boolean