Created  helper method