trying to make r regenerate