first attempt at metrics