Added clean data function
added tmp objects