adjusted some values to enhance speed