changes to test and onetime method finished