old version with hebb