first helper method added