missing right parenthesis error, delete lock