cleaned up the stocks api