fixing bug: square brackets instead of parentheses