fixed defects and created header