the magic happens in here