added functions for Molly to implement