cleaned implementation file