better offet calculations