working, but will prob be better if we use index