replaced functionJs with Ramda