fix get date of last update collection
simplify work with collections