trying to work out mining