modified get data functions according to the names