frederick debugging here