error fixed about the brackets closing