fix getAll function and duplicate property
syntax
indentation