removed error section
removed unused actions
fixed code style