cleaned up internal processes