cleaning code final