do not generate attributes list if range key is not passed