added missed brackets, reformatted