adding code for processing rate distribution in home