small syntax change and added a missing bracket