Attempting to get rid of syntax error