moved non-used functions to scratch file