added functions #2