splitting wrong object
remove empty properties