Mark Bregma and functions work together