helper method bug removed