cleaned used code