updated building of Rest Response