got rid of unused elements