adding x-data methods