got rid of checked cast