changed cost access keyword becuase its not const