adjusted callback structure for faster teaching