adding more code for hms app