created methods to return data for different states