moved method to cassandra utils