got rid of a bit of code