There’s science behind that magic