abstract functions for beamer environment