brick with double buffering