fix unclosed bracket
remove executable flags
remove unused variables