added functionality for new