cleaner stack code