fixed api for creating similairty