removes dist first