deleted un-used functions and test console.logs