fixing the bracket issue and the modify issue