added functions to Bean