moved basis to the ruby version because as always PHP is crap