added functions for sink