used older syntax to be compatible with older Ruby versions