removed pointer-type dereference function because of fault warning of clang static analyzer